import request from '@/utils/request'

// 查询销售单安装人员列表
export function listBizOrderInstaller (query) {
  return request({
    url: '/biz/bizOrderInstaller/list',
    method: 'get',
    params: query
  })
}

// 查询销售单安装人员详细
export function getBizOrderInstaller (id) {
  return request({
    url: '/biz/bizOrderInstaller/' + id,
    method: 'get'
  })
}

// 新增销售单安装人员
export function addBizOrderInstaller (data) {
  return request({
    url: '/biz/bizOrderInstaller',
    method: 'post',
    data: data
  })
}

// 修改销售单安装人员
export function updateBizOrderInstaller (data) {
  return request({
    url: '/biz/bizOrderInstaller',
    method: 'put',
    data: data
  })
}

// 删除销售单安装人员
export function delBizOrderInstaller (id) {
  return request({
    url: '/biz/bizOrderInstaller/' + id,
    method: 'delete'
  })
}


// 导出销售单安装人员
export function exportBizOrderInstaller (query) {
  return request({
    url: '/biz/bizOrderInstaller/export',
    method: 'get',
    params: query
  })
}

// 获取初始化数据
export function getInitData (dictTypes) {
  return request({
    url: '/biz/bizOrderInstaller/getInitData/' + dictTypes,
    method: 'get'
  })
}
